package com.system.vote.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 站内信发送表
 * @TableName sys_off_send
 */
@TableName(value ="sys_off_send")
@Data
public class SysOffSend implements Serializable {
    /**
     * 唯一主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 接收人id
     */
    @TableField(value = "receive_user_id")
    private Long receiveUserId;

    /**
     * 发送人姓名
     */
    @TableField(value = "send_out_name")
    private String sendOutName;

    /**
     * 发送时间
     */
    @TableField(value = "send_time")
    private Date sendTime;

    /**
     * 站内信id
     */
    @TableField(value = "mail_id")
    private Long mailId;

    /**
     * 发信人信息状态 /0已发送/1删除
     */
    @TableField(value = "send_state")
    private Integer sendState;

    /**
     * 收信人信息状态 /0已接收/1删除
     */
    @TableField(value = "receive_state")
    private Integer receiveState;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}